package com.itstudy.rpc;

import com.itstudy.service.IHelloService;

/**
 * @ClassName: rpc
 * @Auther: Jerry
 * @Date: 2020/8/18 23:46
 * @Desctiption: TODO
 * @Version: 1.0
 */
public class RpcConsumer {

    public static void main(String[] args) throws InterruptedException {
        IHelloService helloService = RpcProxy.createProxy(IHelloService.class);
        while (true){
            Thread.sleep(2000);
            System.out.println(helloService.sayHello("Jerry"));
        }

    }
}
